package com.china08.yxyapi.entity.mg.sws;

import java.util.Date;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 学校相册
 * 
 * @author Richard Wang
 * 
 */
@SuppressWarnings("serial")
@Document(collection = "yxy.sws.albums")
public class SwsAlbums extends MongoBaseEntityNoId {

    @Id
    private String id;

    @Indexed
    @Field(value = "school_id")
    private String schoolId;
    /**
     * 相册名称
     */
    @Field(value = "name")
    private String name;

    /** 相册描述 */
    @Field(value = "description")
    private String description;

    /**
     * 相册的封面，当本相册下的图片发生变化时，将本相册中的第一张图片update this field。
     */
    @Field(value = "covers")
    private String covers;

    /**
     * 本相册有多少张图片，当相册下图片进行add，delete，update this field。
     */
    @Field(value = "image_count")
    private Integer imageCount = 0;

    /** 排列序号 **/
    @Field(value = "order_num")
    private Integer orderNum = 100;

    /**
     * 相册日期
     */
    @Field(value = "albums_date")
    private Date albumsDate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getCovers() {
        return covers;
    }

    public void setCovers(String covers) {
        this.covers = covers;
    }

    public Integer getImageCount() {
        return imageCount;
    }

    public void setImageCount(Integer imageCount) {
        this.imageCount = imageCount;
    }

    public Date getAlbumsDate() {
        return albumsDate;
    }

    public void setAlbumsDate(Date albumsDate) {
        this.albumsDate = albumsDate;
    }

}
